#ifndef TOYMGR_H_INCLUDED
#define TOYMGR_H_INCLUDED

#include "main.h"
#include "TaLib.h"
#include <map>
#include <vector>
#include <string>
using namespace std;

class   CToyMgr
{
public:
    CToyMgr(CTaScene*);
    ~CToyMgr();

    CTaObject*                  GetRoot();
    CTaObject*                  GetBoneByName(const char*);
    void                       GetBoneFromObject(CTaObject*);
protected:
    CTaObject*                   m_root=NULL;
    map<string,CTaObject*>      m_bones;

};

#endif // TOYMGR_H_INCLUDED
